use crate::{
    model::{Service, ServiceId, ServiceInstance},
    Result,
};

pub mod sc;

pub trait Registry: Send + Sync {
    fn regist_service(&self, service: Service, ep: String) -> Result<ServiceId>;
    fn get_services(&self) -> Result<Vec<Service>>;
    fn find_service_instances(&self, service_id: ServiceId) -> Result<Vec<ServiceInstance>>;
}
